package com.cxso.example.domain.location;

import com.cxso.example.enums.open.ColorEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
public class LocationHistoryDomain {

    /**
     * 车牌号-必填
     */
    @NotBlank(message = "车牌号不能为空！")
    private String carNum;

    /**
     * 车牌颜色-必填
     */
    @NotNull(message = "车牌颜色不能为空！")
    private ColorEnum carColor;

    /**
     * 车架号
     */
    private String vin;

    /**
     * 开始时间-必填
     */
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    /**
     * 结束时间-必填
     */
    @NotNull(message = "结束时间不能为空")
    private Date endTime;

    /**
     * 文件id
     */
    private String fileId;

}
